//
//  TKMainDetailOrderCell.m
//  Ticket
//
//  Created by 小禹宝宝 on 2017/10/24.
//  Copyright © 2017年 cy55. All rights reserved.
//

#import "TKMainDetailOrderCell.h"
@interface TKMainDetailOrderCell ()
@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UIImageView *rightImageView;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;

@end
@implementation TKMainDetailOrderCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.nameLabel.textColor = [BLColorConfig textColor];
    self.priceLabel.textColor = [BLColorConfig mainColor];
    self.timeLabel.textColor = [BLColorConfig darkGrayColor];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(TKOrderItem *)model {
    _model = model;
    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:model.user.user_portrait]];
    self.nameLabel.text = model.user.user_name;
    self.priceLabel.text = model.price;
    self.timeLabel.text = model.add_time;
//    [self.rightImageView sd_setImageWithURL:[NSURL URLWithString:nil]];
    
}
@end
